package com.wanghua.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wanghua.common.utils.PageUtils;
import com.wanghua.mall.product.entity.SkuInfoEntity;
import com.wanghua.mall.product.frontvo.SkuItemVo;

import java.util.List;
import java.util.Map;

/**
 * sku信息
 *
 * @author wanghua
 * @email 2367279431@qq.com
 * @date 2021-08-24 18:52:27
 */
public interface SkuInfoService extends IService<SkuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 条件列表
     */
    PageUtils queryPageCondition(Map<String, Object> params);

    //根据spuID查出所有sku
    List<SkuInfoEntity> getSkuBySpuId(Long spuId);

    //获取商品详情页
    SkuItemVo item(Long skuId);
}

